/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author virginie, william, jef
 */
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Ville {
    protected int id; 
    protected String name; 
    protected String cafe;
    protected String restaurant;
    protected String miage;

     
     /** Requiert nom de la ville (ni null ni vide)*/ 
    
    public Ville (){
        assert name!= null && !name.matches("^\\s*$");   
        id = 20;
        name = "PARIS";
        cafe = "La Flore";
        restaurant = "La Taverne";
        miage = "Paris Descartes";
    }
    public Ville(int id, String name, String cafe, String restaurant, String miage) {
        this.id = id;
        this.name = name;
        this.cafe = cafe;
        this.restaurant = restaurant;
        this.miage = miage;
    }

    public String getCafe() {
        return cafe;
    }

    public int getId() {
        return id;
    }

    public String getMiage() {
        return miage;
    }

    public String getName() {
        return name;
    }

    public String getRestaurant() {
        return restaurant;
    }

    public void setCafe(String cafe) {
        this.cafe = cafe;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setMiage(String miage) {
        this.miage = miage;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setRestaurant(String restaurant) {
        this.restaurant = restaurant;
    }
    
    
}
